import 'dart:io';
import '../public.dart';

/// 环境配置
class AppConfig {
  static const configUrl = '{{api.config}}';

  static const ASSETS_PATH = 'assets/images/';

  /// 默认请求缓存天数
  static const CACHE_DAY = 3;

  /// 请求盐值（用来生成m-request-id 加密请求）
  static const QUEST_KEY = 'erciyuan2020';

  /// AES解密相关
  static const AES_KEY = '4548ded8c9e02690';
  static const AES_IV = '1992360ee9bc4f8f';
  static const AES_DATA = 'arsadata';

  /// AES加密相关
  /// 'aes-128-ecb', 'xujikmlioksjoped',
  static const String AES_ENCRYPT_KEY = 'xujikmlioksjoped';
  static const String AES_ENCRYPT_IV = '';

  static const APP_UPDATE_KEY = 'a74e8f02324c47d88e1b206cbc2e216a';
  static const WX_APPID = 'wx4b45c03fac7c6888';
  static const WX_SECRET = '36234e2002674c84fd5bd45548299d31';
  static const QQ_APPID = '101903813';
  static const WEIBO_APPID = '628381199';

  /// Umeng 一键登录相关配置
  // static String umengAppKey = "5f506281a4aebb6a2feadb05";
  // static String umengAppSecret =
  //     "qZt4oEAuTfUDmjW82bcvS2VGYL6NLkTFvnfqY5uX862K8hi0xVf5PMH5K5k71qXwjfsRJwLPoinmaPvtcVO51lCi0exM9cuOuPA9NvgTJdhihOQo7xuSpim4WZjul07j8GcViq9Gi4V3QYCEO59XFav8qR75DsLRoEFVD0Q83cDD6UN8GMd7LDXI71h2pl7+/9giExVGqgimhrlzO7p9JuM8ZwSxrCTVMAf9jmBXwpx14pihFbtZkJJQzauP1HDXEXTlkfuY9c9j3P6KB4q2Kkfwdh0TmaXx";
  static String umengAppKey = "5ff42e5f44bb94418a74c26a";
  static String umengAppSecret =
      "X0D2SXzLV4v4YpebWW+LS3LeqOTLUPGIenpwKM8Zb/isj1pOlXUg69lqYL3SpSwhEjH00EkNx/MLXrcxy+XYlbXQ1YZtLy/PSaFIbYEHy1+8HlJCNBPQoeNAbSkTdpV4M0ERBsHOLbiRqyo0B+nrbJ+QttoGgwG11cNGg23gr4V7Tllkm7j2MGkRJpbwFDxe/e1eM/0zZ4A5rAg6lCjMB2csn/gj63nqHpfLV1O9qsCt7ZvAQWzUNimsZNeKSVN+1GSptrag0qIf7Peyzitmi0ry0NB4jEoeZWhSBMQWLFpGOZUFqukI1g==";

  // 缓存配置
  static CacheConfModel cacheConf = CacheConfModel.fromJson(
      {'enable': true, 'maxAge': 3600, 'maxCount': 100});

  static String get platformname => Platform.isAndroid ? 'android' : 'iphone';
  static const String PRODUCTNAME = 'qmmh';

  /// 漫画分享url
  static const String SHARE_COMIC_URL =
      'https://shareact.50manhua.com/2020/0820_inviteFriend/sharecomic?pName=qmmh';
}
